package com.oig.sys.auth.service;

import com.oig.sys.auth.dto.PermissionDto;
import com.oig.sys.auth.entity.TbPermission;
import com.oig.sys.auth.vo.PermissionVo;

import java.util.List;

public interface ITbPermissionService {

    TbPermission findNullAuthByUrl(String apiUrl);


    PermissionVo addPermission(PermissionDto permissionDto);

    PermissionVo updatePermission(PermissionDto permissionDto);

    void cancelPermission(Integer permissionId) ;

    PermissionVo addOrUpdatePermission(PermissionDto permissionDto);

    PermissionVo getPermissionInfo(Integer permissionId) ;

    List<PermissionVo> getAllPermission(List<Integer> permissionIdList);

}
